
set(BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
# message("BASE_DIR: ${BASE_DIR}")
aux_source_directory(${BASE_DIR}/ SRC_DIR)
aux_source_directory(${BASE_DIR}/model MODEL_SRC)
aux_source_directory(${BASE_DIR}/redis REDIS_SRC)
# message("BASE_DIR/model MODEL_SRC ${MODEL_SRC}")
add_executable(chatServer main.cpp ${SRC_DIR} ${THIRD_PART} 
    ${PUBLIC_SRC} ${MODEL_SRC} ${REDIS_SRC})
target_link_libraries(chatServer hiredis muduo_base muduo_net mysqlclient pthread)